# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libresourceqt
pkgver=1.30.4
pkgrel=0
pkgdesc="Nemo's libresourceqt"
url="https://git.sailfishos.org/mer-core/libresourceqt"
arch="all"
license="LGPL-2.1-or-later"
makedepends="qt5-qtbase-dev libresource-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://git.sailfishos.org/mer-core/libresourceqt/-/archive/$pkgver/libresourceqt-$pkgver.tar.gz"
options="!check" # No suitable tests

build() {
	qmake-qt5
	make
}

package() {
	INSTALL_ROOT="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="76b9606a6555f580ef618936fa1b25e16f176c3b988cc02d0a2591a5ec629ba5ea806378007d445615331836a7347101cdaa661528ea7327afdedcf5e62b6550  libresourceqt-1.30.4.tar.gz"
